package com.ln.dm1104.demo01;

import java.util.function.BiPredicate;
import java.util.function.Predicate;

/**
 * @author Ln
 * @version 终极版
 * @date 2022/11/4 15:25
 */
public class TestPredicate {
    public static void main(String[] args) {
        Predicate<String> predicate=t->t.length()>5;
        boolean b = predicate.test("nihaoshijie");
        System.out.println(b);

        BiPredicate<String,String> biPredicate=(t,u)->t.equals(u);
        boolean test = biPredicate.test("nihao", "nihao");
        System.out.println(test);
    }
}
